import request from '@/utils/request'

// 查询图书卡片列表
export function listGtbook(query) {
  return request({
    url: '/gt/book/list',
    method: 'get',
    params: query
  })
}

// 查询图书卡片详细
export function getGtbook(bookId) {
  return request({
    url: '/gt/book/' + bookId,
    method: 'get'
  })
}

// 新增图书卡片
export function addGtbook(data) {
  return request({
    url: '/gt/book/add',
    method: 'post',
    data: data
  })
}

// 修改图书卡片
export function updateGtbook(data) {
  return request({
    url: '/gt/book/edit',
    method: 'put',
    data: data
  })
}

// 删除图书卡片
export function delGtbook(bookId) {
  return request({
    url: '/gt/book/' + bookId,
    method: 'delete'
  })
}
